package com.tbit.main.service.impl;

import com.tbit.main.constant.DaoParamConstant;
import com.tbit.main.dao.log.RefundopeLogDao;
import com.tbit.main.service.RefundopeLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @author LMY
 * @create 2020-11-27 13:42
 */
@Service("refundopeLogService")
public class RefundopeLogServiceImpl implements RefundopeLogService {

    @Autowired
    private RefundopeLogDao refundopeLogDao;

    @Override
    public Integer getByAccountIdTime(Integer accountId, String startTime, String endTime) {
        Map<String, Object> params = new HashMap<String, Object>();
        params.put(DaoParamConstant.accountId, accountId);
        params.put(DaoParamConstant.startTime, startTime);
        params.put(DaoParamConstant.endTime, endTime);
        return refundopeLogDao.getByAccountIdTime(params);
    }
}
